package com.example.HeadFirstDemo.Builder;

import lombok.Data;


@Data
public class CarBuilder implements Builder {
    public Car car=new Car();

    public void buildSeat() {
        car.setSeat(new BenzSeat());
    }

    public void buildEngine() {
        car.setEngine(new BenzEngine());
    }

}
